home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / hdk100l.zip / HDKLIB.DOC next >
Text File  |  1993-12-09  |  14KB  |  300 lines

  1.  
  2.  ╔══════════════════════════════════════════════════════════════════════════╗
  3.  ║                                                                          ║
  4.  ║                                 ISoft D&M                                ║
  5.  ║                               P.O.Box 5517                               ║
  6.  ║                           Coralville IA 52241                            ║
  7.  ║                                   U.S.A                                  ║
  8.  ║                                                                          ║
  9.  ╚══════════════════════════════════════════════════════════════════════════╝ 
  10.  
  11. *******************************************************************************
  12. *                                   HDKLIB                                    *
  13. * HLPDK V10.0+ System Library Documentation.                                  *
  14. * Last Update - Dec. 09, 1993. (c) 1993, Loewy Ron.                           *
  15. *******************************************************************************
  16.  
  17.  HLPDK V10.0+ System Extention Library.
  18.  
  19.  "Write Once, Help Many!"
  20.       
  21. *******************************************************************************
  22. *                                  File-List                                  *
  23. *******************************************************************************
  24.  
  25. This package contains the following files :
  26.  
  27. HDKLIB  .DOC    - This file.
  28. HDKLIB  .HDF    - System extention library HDF source.
  29. VWRLIB  .HDF    - System extention library component. (MM Viewer specific).
  30. RTFLIB  .HDF    - System extention library component. (Common RTF extentions).
  31. IPFLIB  .HDF    - System extention library component. (OS/2, needs HLPDK V11.0)
  32. TESTLIB .HDF    - A Small test for the library - Source.
  33. TESTLIB .HLP    - A Small test for the library - WINHELP format.
  34. PRS     .BMP    - A Bitmap used in the test.
  35.  
  36. *******************************************************************************
  37. *                                Introduction                                 *
  38. *******************************************************************************
  39.  
  40. HDKLIB is an extention library to HLPDK V10.0+ that adds functionality to
  41. the HLPDK package, by including special "User Link Templates" that add support
  42. for special links, special graphics, enhanced text attributes and more.
  43.  
  44. HDKLIB uses the HLPDK .USERLINK statement to add functionality to the HLPDK
  45. system, and offer simple methods to create graphic links, normal text links,
  46. 256 color bitmap support, video, CDAudio, Multimedia MCI interface etc ..
  47.  
  48. WINHELP users have access to the complete macro API, using !xxx user links.
  49.  
  50. *******************************************************************************
  51. *                                  Warranty                                   *
  52. *******************************************************************************
  53.  
  54. There is no warranty what so ever, The package is supplied as is,
  55. The distributor (ISoft D&M), or the author (Loewy Ron), are not, 
  56. and will not be responsible for any damages, lost profits, 
  57. or inconveniences caused by the use, or inability to use this package. 
  58. The use of the program is at your own risk. 
  59. By using (or attempting to use) the package you agree to this.
  60.  
  61. *******************************************************************************
  62. *                                Distribution                                 *
  63. *******************************************************************************
  64.  
  65. HDKLIB is free to registered users of HLPDK. If you are not a HLPDK registered
  66. user, you are allowed to evaluate HLPDK and HDKLIB for a reasonable amount of
  67. time (Up to 1 Month).
  68.  
  69. Please consult the HLPDK.DOC and HLPDK.REG files that come with the evaluation
  70. package of HLPDK.
  71.  
  72. *******************************************************************************
  73. *                                   Contact                                   *
  74. *******************************************************************************
  75.  
  76. Please contact :
  77.  
  78.         ISoft D&M  
  79.         P.O.Box 5517
  80.         Coralville IA 52241
  81.         U.S.A
  82.  
  83.         E-Mail  : Compuserve - 76350,333
  84.         Phone   : (319) 351-8413
  85.            
  86. To contact the author directly please write to : 
  87.  
  88.         Loewy Ron
  89.  
  90.         E-Mail  : Compuserve - 100274,162
  91.  
  92. *******************************************************************************
  93. *                                    Setup                                    *
  94. *******************************************************************************
  95.  
  96. Copy the files to the directory you use to keep HLPDK V10.0+ .
  97.  
  98. Every help/hypertext/hypermedia database you use with HDKLIB should include
  99. a line of the format :
  100.  
  101. .include [d:\path\to\hdklib-directory\]HDKLIB.HDF
  102.  
  103. and all the HDKLIB functions are available.
  104.  
  105. *******************************************************************************
  106. *                                  Operation                                  *
  107. *******************************************************************************
  108.  
  109. After you have .INCLUDEd the HDKLIB.HDF library in your HDF source, you
  110. can use the following NEW functions and templates :
  111.  
  112. winHelp
  113. -------
  114.  
  115. Text Attributes :
  116.  
  117. boldText        - Display Text in Bold.     ~Text to display~boldText~
  118. italicText      - Display Text in Italic    ~Text to display~italicText~
  119. underlineText   - Display Text underlined   ~Text to display~underlineText~
  120. boldItalicText  - Display Bold Italic Text  ~Text to display~boldItalicText~
  121. fontText        - Display Text in font X    ~Text in font 3~fontText(3)~
  122.  
  123. Links :
  124.  
  125. NormalTextLink  - Link not underlined       ~Click Here~NormalTextLink(linkId)~
  126. NormalTextPopup - Popup not underlined      ~Click Here~NormalTextPopup(popupId)~
  127.  
  128. graphicLink     - Link connected to bitmap  ~Text~graphicLink(myBmp LinkId)~
  129.                   Should declare a .GRAPHIC myBmp c:\..\myfile.bmp
  130. graphicPopup    - Popup connected to bitmap ~Text~graphicPopup(myBmp PopupId)
  131.                   Should declared a .GRAPHIC myBmp c:\..\myfile.bmp
  132.  
  133.  
  134. Macros :
  135.  
  136. Complete WINHELP macro API reference is provided, if there is a macro such
  137. as the About() WINHELP macro, you can rfer to it with the !about user link.
  138.  
  139. e.g. - Using the ExecProgram WINHELP macro, to start NOTEPAD.EXE in minimized
  140.        mode can be used with !execProgram(notepad.exe 2)
  141.  
  142. For the complete macro reference, please consult the WINHELP macro 
  143. documentation in the programming reference guide that came with your
  144. development package, or the Microsoft WHAG package.
  145.  
  146. WINHELP Macros Quick Referece -
  147.  
  148. About                - Displays the About dialog box 
  149.                       e.g. ~text~!about~      
  150. AddAccelerator        - Assigns a macro to an accelerator key 
  151.                       e.g. ~text~!addAccelerator(0x73 7 'About()')~
  152. Annotate        - Displays Annotation dialog box 
  153.                       e.g. ~text~!annotate~
  154. AppendItem        - Appends a menu item 
  155.                       e.g. ~text~!appendItem(ID_MENU ID_ITEM &Item 'JI("","TOP")'~
  156. Back                - Displays previous topic in the history list 
  157.                       e.g. ~text~!back~
  158. BookmarkDefine        - Displays the Define dialog box 
  159.                       e.g. ~text~!bookmarkDefine~
  160. BookmarkMore        - Displays the More dialog box 
  161.                       e.g. ~text~!bookmarkMore~
  162. BrowseButtons        - Adds browse buttons 
  163.                       e.g. ~text~!browseButtons~
  164. ChangeButtonBinding - Assigns a macro to a button 
  165.                       e.g. ~text~!ChangeButtonBinding(btn_contents 'JI("","NEWTOP")')~
  166. ChangeItemBinding   - Assigns a macro to a menu item 
  167.                       e.g. ~text~!changeItemBinding(DISP_ABOUT About())~
  168. CheckItem        - Checks a menu item 
  169.                       e.g. ~text~!checkItem(ID_ITEM)~
  170. CloseWindow        - Closes a window 
  171.                       e.g. ~text~!closeWindow(ID_WIN)~
  172. Contents        - Displays the Contents topic                             
  173.                       e.g. ~text~!contents~
  174. CopyDialog        - Displays the Copy dialog box 
  175.                       e.g. ~text~!copyDialog~
  176. CopyTopic        - Copies current topic to the clipboard 
  177.                       e.g. ~text~!copyTopic~
  178. CreateButton        - Adds a new button to the button bar 
  179.                       e.g. ~text~!createButton(ID_BUTTON BUT_NAME JI("","TOP")~
  180. DeleteItem        - Removes a menu item 
  181.                       e.g. ~text~!deleteItem(ID_ITEM)~
  182. DeleteMark        - Deletes a text marker 
  183.                       e.g. ~text~!deleteMark(Marker)~
  184. DestroyButton        - Removes a button from the button bar 
  185.                       e.g. ~text~!destroyButton(ID_BUTTON)~
  186. DisableButton        - Disables a button 
  187.                       e.g. ~text~!disableButton(ID_BUTTON)~
  188. DisableItem        - Disables a menu item 
  189.                       e.g. ~text~!disableItem(ID_ITEM)~
  190. EnableButton        - Enables a button 
  191.                       e.g. ~text~!enableButton(ID_BUTTON)~
  192. EnableItem        - Enables a menu item 
  193.                       e.g. ~text~!enableItem(ID_ITEM)~
  194. ExecProgram        - Executes a program 
  195.                       e.g. ~text~!execProgram(clock.exe 0)~
  196. Exit                - Exits  
  197.                       e.g. ~text~!exit~
  198. FileOpen        - Displays the Open dialog box 
  199.                       e.g. ~text~!fileOpen~
  200. FocusWindow        - Changes the focus window 
  201.                       e.g. ~text~!focusWindow(ID_WIN)~
  202. GoToMark            - Jumps to a marker 
  203.                       e.g. ~text~!gotoMark(MARKER)~
  204. HelpOn                - Displays the Help on Using topic 
  205.                       e.g. ~text~!helpOn~
  206. HelpOnTop           - Toggles on-top state of help 
  207.                       e.g. ~text~!helpOnTop~
  208. History                - Displays the history list 
  209.                       e.g. ~text~!history~
  210. IfThen                - Executes macro if marker exists 
  211.                       e.g. ~text~!ifThen(MARKER 'JI("","TOP")')~
  212. IfThenElse        - Executes one of two macros if marker exists 
  213.                       e.g. ~text~!ifThenElse(Marker MACROTRUE MACROFALSE)~
  214. InsertItem        - Inserts a menu item 
  215.                       e.g. ~text~!insertItem(ID_MENU ID_ITEM &Item MACRO 3)~
  216. InsertMenu        - Inserts a new menu 
  217.                       e.g. ~text~!insertMenu(ID_MENU &Menu 2)~
  218. IsMark                - Tests if a marker is set 
  219.                       e.g. ~text~!ismark(MARKER)~
  220. JumpContents        - Jumps to the Contents topic
  221.                       e.g. ~text~!JumpContents(FILENAME)~ 
  222. JumpContext        - Jumps to the specified context 
  223.                       e.g. ~text~jumpContext(FILENAME TOP_ID)~
  224. JumpHelpOn        - Jumps to Using Help file 
  225.                       e.g. ~text~!jumpHelpOn~
  226. JumpId                - Jumps to the specified topic 
  227.                       e.g. ~text~!jumpId(FILENAME TOP_NAME)~
  228. JumpKeyword         - Jumps to the topic containing the keyword 
  229.                       e.g. ~text~!jumpKeyword(FILENAME KEYWORD)~
  230. Next                - Displays the next topic in the browse sequence 
  231.                       e.g. ~text~!next~
  232. Not                - Reverses the IsMark macro 
  233.                       e.g. ~text~!not(MARKER)~
  234. PopupContext        - Displays a topic in a popup window 
  235.                       e.g. ~text~!popupContext(FILENAE POPUP_ID)~
  236. PopupId                - Displays topic in a popup window 
  237.                       e.g. ~text~!popupId(FILENAE POPUP_NAME)~
  238. PositionWindow        - Sets the size and position of a window 
  239.                       e.g. ~text~!positionWindow(x y w h state ID_WIN)~
  240. Prev                - Displays previous topic in browse sequence 
  241.                       e.g. ~text~!prev~
  242. Print                - Prints the current topic 
  243.                       e.g. ~text~!print~
  244. PrinterSetup        - Displays the Printer Setup dialog box 
  245.                       e.g. ~text~!printerSetup~
  246. RegisterRoutine        - Registers a DLL function 
  247.                       e.g. ~text~!registerRoutine(DLL FUNC PARAMETERS)~
  248. RemoveAccelerator   - Assigns a macro to an accelerator key 
  249.                       e.g. ~text~!removeAccelerator(KEY SHIFT_STATE)~
  250. SaveMark        - Saves a marker 
  251.                       e.g. ~text~!saveMark(MARKER)~
  252. Search                - Displays the Search dialog box 
  253.                       e.g. ~text~!search~
  254. SetContents         - Sets the Contents topic 
  255.                       e.g. ~text~!setContents(FILENAME TOP_ID)~
  256. SetHelpOnFile        - Sets the Using Help help file 
  257.                       e.g. ~text~!setHelpOnFile(FILENAME)~
  258. UncheckItem        - Unchecks a menu item 
  259.                       e.g. ~text~!uncheckItem(ID_ITEM)~
  260.  
  261. Multimedia :
  262.  
  263. Interface to the MCI String Command interface, with support for VfW AVI Video
  264. files, CDAudio, and any MCI String for any MultiMedia device supported by MCI.
  265.  
  266. videoLink           - Play AVI video.
  267.                       e.g. ~text~videoLink(MOVIE.AVI)~
  268. CDAudioLink         - Play a range of CDAudio tracks (From, To)
  269.                       e.g. ~text~CDAudioLink(5 7)~
  270. mciStringLink       - Send a genric MCI String command
  271.                       e.g. ~text~mciStringLink('open sequenced!mymusic.mid alias music')~
  272.  
  273. Multimedia Viewer
  274. -----------------
  275.  
  276. Text Attributes : Same as winHelp
  277. Links           : Same as winHelp
  278. Macros          : Same as winHelp
  279. MultiMedia      : Interface to MCI String commands, as in WINHELP.
  280.  
  281. 256 Bitmaps :
  282.  
  283. bmp256, bmp256Left, bmp256Right - Display 256 color bitmap in an embedded pane.
  284. Gbmp256, Gbmp256Left and Gbmp256Right - are the same, but associate bitmaps
  285.                                         defined in .graphic command.
  286. Ebmp256, Ebmp256Left, EbmpRight - are the same, but for graphics defined
  287.                                   in .embedd commands. This is the prefered
  288.                                   method for MM Viewer!
  289.  
  290. RTF Word Processors
  291. -------------------
  292.  
  293. Text Attributes : Same as winHelp
  294.  
  295. IPF (OS/2)
  296. ----------
  297.  
  298. IPF extention need HLPDK V11.0 or later, Version 10.0 is NOT enough.
  299. HLPDK V11.0 has not been released yet, when this library is released.
  300.